import request from '@/utils/request'

export function orderPrepay(data) {
  return request({
    url: '/pay/weixin/jsapi',
    method: 'post',
    data
  })
}
export function orderH5pay(data) {
  return request({
    url: '/pay/h5pay',
    method: 'post',
    data
  })
}

export function orderHmpay(data) {
  return request({
    url: '/pay/hmpay',
    method: 'post',
    data
  })
}
// 混合支付
export function pointCashPay(data) {
  return request({
    url: '/pay/pointCashPay',
    method: 'post',
    data
  })
}

export function orderProcurementHmpay(data) {
  const url = `/pay/procurement/hmpay?${new URLSearchParams(data).toString()}`
  return request({
    url,
    method: 'get'
  })
}

export function payStatus(data) {
  return request({
    url: '/pay/status?' + data,
    method: 'get',
  })
}
